package com.banciyuan.bcywebview.biz.webdetail;

import com.banciyuan.bcywebview.biz.topic.TopicDetailActivity;

/**
 * Created by squall on 2016/4/11.
 */
public class TopicActivity4WebSite extends TopicDetailActivity {

    private String from_path;

    @Override
    protected void initArgs() {
        super.initArgs();
        try {
            from_path = getIntent().getData().getPath();
            setWebParmas();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


    private void setWebParmas() {
        String[] paths = from_path.split("/");
        try {
            if (paths[1].equals("special")) {
                special_id = Integer.parseInt(paths[paths.length - 1]);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
